/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 用户新增预约 POST /scenic/reserveOrder/addOrder */
export async function scenicReserveOrderAddOrderUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/reserveOrder/addOrder', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 用户取消预约 POST /scenic/reserveOrder/cancelOrder */
export async function scenicReserveOrderCancelOrderUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicReserveOrderCancelOrderUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/reserveOrder/cancelOrder', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 用户取消明细预约 POST /scenic/reserveOrder/cancelOrderDetail */
export async function scenicReserveOrderCancelOrderDetailUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicReserveOrderCancelOrderDetailUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/reserveOrder/cancelOrderDetail',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 导出预约列表 POST /scenic/reserveOrder/exportOrder */
export async function scenicReserveOrderExportOrderUsingPost({
  body,
  options,
}: {
  body: API.ReserveOrderQueryDto8fe76ad2F5ad418fB8e5A6247ff43a73;
  options?: { [key: string]: unknown };
}) {
  return request<Record<string, unknown>>('/scenic/reserveOrder/exportOrder', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查询预约 POST /scenic/reserveOrder/getOrder */
export async function scenicReserveOrderGetOrderUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicReserveOrderGetOrderUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingReserveOrderVo>('/scenic/reserveOrder/getOrder', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 分页查询预约列表 POST /scenic/reserveOrder/queryPageOrder */
export async function scenicReserveOrderQueryPageOrderUsingPost({
  body,
  options,
}: {
  body: API.ReserveOrderQueryDto254aa64b8e3048b295633acd55035456;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoReserveOrderVo>(
    '/scenic/reserveOrder/queryPageOrder',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
